package tt.com.financialmanagement.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.common.model.Order;
import tt.com.financialmanagement.service.DriveTaskService;

@RestController
@RequestMapping(value = "fortune/Information")
//车辆的前端-后端/api/finance/business/xxxx
public class DriveTaskController {
    @Autowired
    private DriveTaskService driveTaskService;

    @PostMapping(value = "select/drive")
    public ResponseEntity selectDrive(@RequestBody Order order){
        return driveTaskService.selectDrive(order);
    }
}
